home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11659 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1009 b 

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Defining accuracy
  5. Date: 26 Mar 1996 06:45:35 +1200
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Message-ID: <4j6pkf$e68@airdmhor.gen.nz>
  8. References: <DoKBM0.8L3.B.midge@bath.ac.uk> <827684758snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: airdmhor.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Lawrence Kirby:
  13. > In article <DoKBM0.8L3.B.midge@bath.ac.uk> py3heh@bath.ac.uk "H E Harmer" writes:
  14.  
  15. > >Is there a way of defining the precision of the 'double' and 'long double' 
  16. > >variables when compiling with an ANSI C compiler? I am looking to 
  17. > >hopefully doubling it or better.
  18.  
  19. > Generally no - the compiler defines the precision of the various floating
  20. > point types. It typically corresponds to what the hardare supports.
  21.  
  22.   Couldn't you check the values in limits.h and typedef the type that fits,
  23. or give an error or take the best fit if you can't find anything?
  24.